import actionType from "../action";
let flagReducer = (state = { flag: true }, action: any) => {
    switch (action.type) {
        case actionType.CHANGEFLAG:
            return { flag: action.payload }

    }

    return state;

}
export default flagReducer;